@model LanLordz.Models.TournamentActionModel
@{
    var controller = this.ViewContext.Controller as LanLordzBaseController;
    ViewBag.Title = Model.Rounds.Any() ? "Start Next Round" : "Start Tournament";
}
    <div class="EventsNavigator">@Html.ActionLink(controller.Config.SiteName + " Events", "Index") &gt; @Html.ActionLink(Model.Event.Title, "Details", new { id = Model.Event.EventID }) &gt; @Html.ActionLink(Model.Tournament.Title, "ViewTournament", new { id = Model.Tournament.TournamentID }) &gt; @ViewBag.Title</div>
    <h2>@ViewBag.Title</h2>
    @using (Html.BeginForm())
    {
     <text>
     @Html.AntiForgeryToken()
     @Html.ValidationSummary("There was an error starting the " + (Model.Rounds.Any() ? "next round" : "tournament") + ":", new { @class = "ErrorText" })
     Max number of pairings: @Html.TextBox("MaxPairings") (Leave blank for default.)<br /><br />
     <input type="submit" value="Start" /> @Html.ActionLink("Cancel", "ViewTournament", new { id = Model.Tournament.TournamentID })
     </text>
   }
